<div th:fragment="column" class="fly-panel fly-column" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
  <div class="layui-container">
    <ul class="layui-clear">
      <li class="layui-hide-xs"th:class="${ cardTypeId==null||cardTypeId==0 }? 'layui-hide-xs layui-this' : 'layui-hide-xs'"><a href="/index">首页</a></li>
      <li th:class="${ cardTypeId==1?'layui-this':'' }"><a href="/jie/q/1"   >提问</a></li>
      <li th:class="${ cardTypeId==99?'layui-this':'' }"><a href="/jie/q/99"  >分享</a></li>
      <li th:class="${ cardTypeId==100?'layui-this':'' }"><a href="/jie/q/100" >讨论</a></li>
      <li th:class="${ cardTypeId==101?'layui-this':'' }"><a href="/jie/q/101" >建议</a></li>
      <li th:class="${ cardTypeId==168?'layui-this':'' }"><a href="/jie/q/168" >公告</a></li>
      <li th:class="${ cardTypeId==169?'layui-this':'' }"><a href="/jie/q/169" >动态</a></li>
      <!-- 用户登入后显示 -->
      <span sec:authorize="isAuthenticated()">
      <li class="layui-hide-xs layui-hide-sm layui-show-md-inline-block"><span class="fly-mid"></span></li> 
        <li class="layui-hide-xs layui-hide-sm layui-show-md-inline-block"><a href="/user/index">我发表的贴</a></li>
        <!--<li class="layui-hide-xs layui-hide-sm layui-show-md-inline-block"><a href="/user/index#collection">我收藏的贴</a></li>-->
      </span>
    </ul>
    
    <div class="fly-column-right layui-hide-xs"> 
      <!--<span class="fly-search"><i class="layui-icon"></i></span> -->
      <a href="/jie/add.html" class="layui-btn">发表新帖</a>
    </div> 
    <div class="layui-hide-sm layui-show-xs-block" style="margin-top: -10px; padding-bottom: 10px; text-align: center;"> 
      <a href="/jie/add.html" class="layui-btn">发表新帖</a>
    </div> 
  </div>
</div>